val_check_interval=20000
type_suffix=CLIPpostVQ_ViT-B-16

# model_type=custom/$type_suffix
# cfg_path=configs/${model_type}.yaml
# logdir=logs/$model_type
# python main.py \
#     -t true \
#     --base $cfg_path \
#     -l $logdir \
#     --devices "0" \
#     --max_steps 200 \
#     --overfit_batches 100 \
#     --limit_val_batches 50 \
#     --val_check_interval 150

# model_type=vq-f4/$type_suffix
# cfg_path=configs/${model_type}.yaml
# logdir=logs/$model_type
# python main.py \
#     -t true \
#     --base $cfg_path \
#     -l $logdir \
#     --devices "0" \
#     --max_steps 200001 \
#     --val_check_interval $val_check_interval

# python main.py \
#     --resume logs/vq-f4/base/2023-02-22T10-46-21_base/checkpoints/epoch=000000-v1.ckpt \
#     -t true

# model_type=vq-f4-noattn/$type_suffix
# cfg_path=configs/${model_type}.yaml
# logdir=logs/$model_type
# python main.py \
#     -t true \
#     --base $cfg_path \
#     -l $logdir \
#     --devices "0" \
#     --max_steps 160001 \
#     --val_check_interval $val_check_interval

python main.py \
    --resume logs/vq-f4-noattn/CLIPpreVQ_ViT-B-16/2023-03-01T18-58-39_CLIPpreVQ_ViT-B-16/checkpoints/last.ckpt \
    --max_steps 300000 \
    -t true

# model_type=vq-f8/$type_suffix
# cfg_path=configs/${model_type}.yaml
# logdir=logs/$model_type
# python main.py \
#     -t true \
#     --base $cfg_path \
#     -l $logdir \
#     --devices "0" \
#     --max_epochs 2 \
#     --val_check_interval $val_check_interval

# python main.py \
#     --resume logs/vq-f8/base/2023-02-19T13-03-19_base/checkpoints/last.ckpt \
#     -t true

# model_type=vq-f8-n256/$type_suffix
# cfg_path=configs/${model_type}.yaml
# logdir=logs/$model_type
# python main.py \
#     -t true \
#     --base $cfg_path \
#     -l $logdir \
#     --devices "0" \
#     --max_steps 140001 \
#     --val_check_interval $val_check_interval

# python main.py \
#     --resume logs/vq-f8-n256/CLIPpreVQ_ViT-B-16/2023-03-01T19-19-25_CLIPpreVQ_ViT-B-16/checkpoints/last.ckpt \
#     --max_steps 240000 \
#     -t true

# model_type=vq-f16/$type_suffix
# cfg_path=configs/${model_type}.yaml
# logdir=logs/$model_type
# python main.py \
#     -t true \
#     --base $cfg_path \
#     -l $logdir \
#     --devices "0" \
#     --max_epochs 2 \
#     --val_check_interval $val_check_interval

# python main.py \
#     --resume logs/vq-f16/base/2023-02-19T13-05-25_base/checkpoints/last.ckpt \
#     -t true